package com.taobao.tbapi;

/**
 * configs about api
 * 
 * @author ly
 * 
 */
public class ApiConfigs {

  public static class AdType {
    public final static Integer DISPLAY = 1; // 展示型
    public final static Integer RESULT  = 2; // 效果型
  }

  public static class UserType {
    public final static Integer NORMAL = 1; // 品牌方创建的普通的活动
    public final static Integer SHARE  = 2; // 运营创建的拼单活动
  }

  public static String APP_KEY                = "21587911";
  public static String APP_SECRET             = "aee342fa13f0ace36678ba0d506e3633";
  public static String APP_INDEX_URL          = "http://vote.we.app.jae.taobao.com/admin";
  public static String APP_ARTICLE_CODE       = "FW_GOODS-1908701";

  public static String SUB_USER_OAUTH_URL     = "http://mai.taobao.com/subaccount/employee/role_detail.htm";

  public static String CODE_URL               = "https://oauth.taobao.com/authorize?response_type=code&client_id=%s&redirect_uri=%s&state=%s&scope=%s&view=%s";
  public static String TOKEN_URL              = "https://oauth.taobao.com/token";

  public static String TAOBAO_URL             = "http://container.api.taobao.com/container?encode=utf-8&appkey=" + APP_KEY;
  public static String API_TAOBAO_URL         = "http://gw.api.taobao.com/router/rest";

  public static String CODE_URL_SANDBOX       = "https://oauth.tbsandbox.com/authorize?response_type=code&client_id=%s&redirect_uri=%s&state=%s&scope=%s&view=%s";
  public static String TOKEN_URL_SANDBOX      = "https://oauth.tbsandbox.com/token";

  public static String TAOBAO_URL_SANDBOX     = "http://container.api.tbsandbox.com/container?encode=utf-8&appkey=" + APP_KEY;
  public static String API_TAOBAO_URL_SANDBOX = "http://gw.api.tbsandbox.com/router/rest";

  public static String TAOBAO_ITEM_URL        = "http://item.taobao.com/item.htm?id=";

  public static String getServiceUrl() {
    return "http://fuwu.taobao.com/ser/detail.htm?tracelog=yy&service_code=" + APP_ARTICLE_CODE;
  }

  public static class TradeDay {
    public static final int MAX_TRADE_GET             = 89;
    public static final int MAX_TRADE_PROCESS         = 80;
    public static final int MAX_TRADE_ACOOKIE_PROCESS = 7;
  }

  public static class PageSize {
    public static long KEYWORD_RECOMMEND_PAGE_SIZE          = 60;
    public static long ADGROUPS_GET_PAGE_SIZE               = 60;
    public static long ADGROUPS_CAMPCATMATCHS_GET_PAGE_SIZE = 60;
    public static long ITEM_PAGE_SIZE                       = 200L;
    public static int  ITEMS_LIST_PAGE_SIZE                 = 18;
    public static long CRMMEMBER_PAGE_SIZE                  = 80L;
    public static long CUSTBASE_PAGE_SIZE                   = 160L;
    public static long ADGROUPKEYWORDEFFECT_PAGE_SIZE       = 160L;
    public static int  HOT_WORD_PAGE_SIZE                   = 15;
  }
}
